<base href="<?php echo base_url();?>" />
<link rel="stylesheet" href="assets/style.css" type="text/css" media="screen"/>

<?php

#$this->load->helper(array('form'));
#echo validation_errors(); 
#echo form_open('klausurenfragen_controller/set_klausurfragen');
#echo "<input type='input' name='klausurenid' hidden='true' value='".$klausurenid."'/>";
echo "<table>
		<thead>
	    	<tr>
		      	<th class='sorter-false'>Fragenr. </th>
		      	<th class='sorter-false'>Fragen ID </th>
	    	</tr>
		</thead>
		<tbody>";
			$a = 1;
			foreach($klausurenfragen as $row):
	  echo "<tr>
				<td>".$a." </td>
				<td>";
				echo "<input type='input' name='fragenid[".$a."]' value='".$row['FragenID']."' disabled/><br />";				
		   echo"</td>
			</tr>";
			$a++;
			endforeach;
			for($i = $a; $i <= $anzahlfragen; $i++):
	  echo "<tr>
				<td>".$i." </td>
				<td>";
				echo "<input type='input' name='fragenid[".$i."]' disabled/><br />";				
		   echo"</td>
			</tr>";
			endfor; 
 echo "</tbody>
	</table>";
?>

<script>
$(document).ready(function() 
    { 
	    $("table").tablesorter({ 
	        // pass the headers argument and assing a object 
	 
	        theme: 'green',
	        widthFixed: true, 
	        widgets: ['zebra'] 
	    })
    }   
); 
</script>